﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;
using System.Windows.Media.Media3D;
using System.Diagnostics;

namespace WpfApplication1
{
	/// <summary>
	/// Interaction logic for Coin.xaml
	/// </summary>
	public partial class Coin : UserControl
	{
		public Coin()
		{
			this.InitializeComponent();
            this.Loaded += new RoutedEventHandler(Coin_Loaded);
		}
        AxisAngleRotation3D temp;
        double force = 1;
        void Coin_Loaded(object sender, RoutedEventArgs e)
        {
            temp = rotateTransform.Rotation as AxisAngleRotation3D;
            CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);
        }

        void CompositionTarget_Rendering(object sender, EventArgs e)
        {
            temp.Angle+=force;
           
        }
       
	}
}